/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.nys.conci.cliente.entidad;

import com.nys.conci.base.ObjetoBase;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

/**
 *
 * @author Yeudy10
 */
@Entity
@Table(name = "pago", schema = "public")
@SequenceGenerator(name = "ID_SEQ", sequenceName = "seq_pago", allocationSize = 1)
public class Pago extends ObjetoBase implements Serializable {

    //<<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>
    //<<<>>>><<<>>>><<<>>>><<<>>>>  VARIABLES  <<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>
    //<<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>    
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "ID_SEQ")
    private Integer id_pago;
    private String identificacion;
    private String tipo_pago;
    private BigDecimal monto;
    private Integer id_especialidad;
    private Integer id_plan_pago;
    private Integer id_cita;
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date fecha;

    //<<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>
    //<<<>>>><<<>>>><<<>>>><<<>>>>  CONSTRUCTOR  <<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>
    //<<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>
    public Pago() {
    }

    public Pago(Integer id_pago) {
        this.id_pago = id_pago;
    }
    //<<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>
    //<<<>>>><<<>>>><<<>>>><<<>>>>  GETS & SETS  <<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>
    //<<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>><<<>>>>

    /**
     * @return the id_pago
     */
    public Integer getId_pago() {
        return id_pago;
    }

    /**
     * @param id_pago the id_pago to set
     */
    public void setId_pago(Integer id_pago) {
        this.id_pago = id_pago;
    }

    /**
     * @return the identificacion
     */
    public String getIdentificacion() {
        return identificacion;
    }

    /**
     * @param identificacion the identificacion to set
     */
    public void setIdentificacion(String identificacion) {
        this.identificacion = identificacion;
    }

    /**
     * @return the monto
     */
    public BigDecimal getMonto() {
        return monto;
    }

    /**
     * @param monto the monto to set
     */
    public void setMonto(BigDecimal monto) {
        this.monto = monto;
    }

    /**
     * @return the id_especialidad
     */
    public Integer getId_especialidad() {
        return id_especialidad;
    }

    /**
     * @param id_especialidad the id_especialidad to set
     */
    public void setId_especialidad(Integer id_especialidad) {
        this.id_especialidad = id_especialidad;
    }

    /**
     * @return the id_plan_pago
     */
    public Integer getId_plan_pago() {
        return id_plan_pago;
    }

    /**
     * @param id_plan_pago the id_plan_pago to set
     */
    public void setId_plan_pago(Integer id_plan_pago) {
        this.id_plan_pago = id_plan_pago;
    }

    /**
     * @return the id_cita
     */
    public Integer getId_cita() {
        return id_cita;
    }

    /**
     * @param id_cita the id_cita to set
     */
    public void setId_cita(Integer id_cita) {
        this.id_cita = id_cita;
    }

    /**
     * @return the fecha
     */
    public Date getFecha() {
        return fecha;
    }

    /**
     * @param fecha the fecha to set
     */
    public void setFecha(Date fecha) {
        this.fecha = fecha;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Pago other = (Pago) obj;
        if (this.id_pago != other.id_pago && (this.id_pago == null || !this.id_pago.equals(other.id_pago))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 83 * hash + (this.id_pago != null ? this.id_pago.hashCode() : 0);
        return hash;
    }

    /**
     * @return the tipo_pago
     */
    public String getTipo_pago() {
        return tipo_pago;
    }

    /**
     * @param tipo_pago the tipo_pago to set
     */
    public void setTipo_pago(String tipo_pago) {
        this.tipo_pago = tipo_pago;
    }
}
